//
//  SEGUhomeMediator+SEGUhomeSommunityBuss.m
//  SEGBasicBussiness
//
//  Created by 梁昆 on 2018/4/3.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import "SEGUhomeMediator+SEGUhomeSommunityBuss.h"

NSString * const kTargetHouseRental = @"HouseRental";
NSString * const kTargetHouseRentalAndSale = @"HouseRentalAndSale";

NSString * const kActionHouseRentalInitMenuHouseViewController = @"initMenuHouseViewController";
NSString * const kActionHouseRentalInitNewRentAndSaleHouseViewController = @"initNewMenuHouseListViewController";
NSString * const kActionHouseRentalInitChooseRentalHouseViewController = @"initChooseRentalHouseViewController";
NSString * const kActionHouseRentalInitHouseRentalRootViewController = @"initHouseRentalRootViewController";
NSString * const kActionHouseRentalInitMyHouseRentalViewController = @"initMyHouseRentalViewController";
NSString * const kActionHouseRentalInitNewHouseRentalViewController = @"initNewHouseRentalViewController";

NSString * const kTargetGroupsShopping = @"GroupsShopping";
NSString * const kActionGroupsShoppingRootViewController = @"initGroupsShoppingRootViewController";
NSString * const kActionShoppingCarRootViewController = @"initShoppingCarRootViewController";
NSString * const kActionMyOrderDetailViewController = @"initMyOrderDetailViewController";
NSString * const kActionOrderComfirmViewController = @"initOrderComfirmViewController";
NSString * const kActionConfirmOrderViewController = @"initConfirmOrderViewController";
NSString * const kActionGroupsShoppingDetailViewController = @"initGroupsShoppingDetailViewController";
NSString * const kActionGroupsShoppingInitSelectTimeViewController = @"initSelectTimeViewController";

NSString * const kTargetOrder = @"Order";
NSString * const kActionOrderInitSEGOrderViewController = @"initSEGOrderViewController";
NSString * const kActionOrderInitMyOrderViewController = @"initMyOrderViewController";
NSString * const kActionOrderInitHS_ViewController = @"initHS_ViewController";
NSString * const kActionOrderInitHS_OrderViewController = @"initHS_OrderViewController";
NSString * const kActionGetHSOrderViewControllerClass = @"getHSViewControllerClass";

@implementation SEGUhomeMediator (SEGUhomeSommunityBuss)

/**
 * 初始化租赁
 * @author Helen */
-(UIViewController *)seg_initMenuHouseViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRental action:kActionHouseRentalInitMenuHouseViewController params:params shouldCacheTarget:NO];
}

/**
 * 初始化新租赁
 * @author lima */
-(UIViewController *)seg_initNewMenuHouseViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRentalAndSale action:kActionHouseRentalInitNewRentAndSaleHouseViewController params:params shouldCacheTarget:NO];
}

/**
 初始化租赁发布控制器
 
 @author Sam
 */
-(UIViewController*)seg_initPublishHouseListViewController:(NSDictionary*)params{
    return [self performTarget:kTargetHouseRentalAndSale action:@"initPublishHouseListViewController" params:params shouldCacheTarget:NO];
}

/**
 * 初始化新租赁详情
 * @author lima */
- (UIViewController *)seg_initNewHouseDetailsViewController:(NSDictionary *)params {
    return [self performTarget:kTargetHouseRentalAndSale action:@"initNewHouseDetailsViewController" params:params shouldCacheTarget:NO];
}

/**
 初始化我发布的租赁列表
 
 @author lima
 */
- (UIViewController *)seg_initMineHouseListViewController:(NSDictionary *)params {
    return [self performTarget:kTargetHouseRentalAndSale action:@"initMineHouseListViewController" params:params shouldCacheTarget:NO];
}


/**
 * 初始化选择房屋
 * @author Helen */
-(UIViewController *)seg_initChooseRentalHouseViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRental action:kActionHouseRentalInitChooseRentalHouseViewController params:params shouldCacheTarget:NO];
}

/**
 * 租赁 -- 房屋主视图
 * @author Helen
 */
-(UIViewController *)seg_initHouseRentalRootViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRental action:kActionHouseRentalInitHouseRentalRootViewController params:params shouldCacheTarget:NO];
}

/**
 * 租赁 -- 我的租赁
 * @author Helen
 */
-(UIViewController *)seg_initMyHouseRentalViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRental action:kActionHouseRentalInitMyHouseRentalViewController params:params shouldCacheTarget:NO];
}

/**
 * 租赁 -- 发布租赁
 * @author Helen
 */
-(UIViewController *)seg_initNewHouseRentalViewController:(NSDictionary *)params{
    return [self performTarget:kTargetHouseRental action:kActionHouseRentalInitNewHouseRentalViewController params:params shouldCacheTarget:NO];
}

/**
 * 初始化团购
 * @author Helen */
-(UIViewController *)seg_initGroupsShoppingRootViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionGroupsShoppingRootViewController params:params shouldCacheTarget:NO];
}

/**
 * 初始化购物车
 * @author Helen */
-(UIViewController *)seg_initShoppingCarRootViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionShoppingCarRootViewController params:params shouldCacheTarget:NO];
}

/**
 * 团购-订单详情
 * @author Helen
 */
-(UIViewController *)seg_initMyOrderDetailViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionMyOrderDetailViewController params:params shouldCacheTarget:NO];
}

/**
 * 团购-确认订单，网页
 * @author Helen
 */
-(UIViewController *)seg_initOrderComfirmViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionOrderComfirmViewController params:params shouldCacheTarget:NO];
}

/**
 * 团购-确认订单 团购，购物车
 * @author Helen
 */
-(UIViewController *)seg_initConfirmOrderViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionConfirmOrderViewController params:params shouldCacheTarget:NO];
}

/**
 * 团购详情
 * @author Helen
 */
-(UIViewController *)seg_initGroupsShoppingDetailViewController:(NSDictionary *)params{
    return [self performTarget:kTargetGroupsShopping action:kActionGroupsShoppingDetailViewController params:params shouldCacheTarget:NO];
}


/**
 * 初始化订单
 * @author Helen
 */
-(UIViewController *)seg_initSEGOrderViewController:(NSDictionary *)params{
    return [self performTarget:kTargetOrder action:kActionOrderInitSEGOrderViewController params:params shouldCacheTarget:NO];
}

/**
 * 初始化订单-团购
 * @author Helen
 */
-(UIViewController *)seg_initMyOrderViewController:(NSDictionary *)params{
    return [self performTarget:kTargetOrder action:kActionOrderInitMyOrderViewController params:params shouldCacheTarget:NO];
}

/**
 * 订单-到家服务
 * @author Helen
 */
-(UIViewController *)seg_initHS_ViewController:(NSDictionary *)params{
    return [self performTarget:kTargetOrder action:kActionOrderInitHS_ViewController params:params shouldCacheTarget:NO];
}

/**
 * 订单-到家服务订单详情
 * @author Wendy
 */
-(UIViewController *)seg_initHS_OrderViewController:(NSDictionary *)params{
    return [self performTarget:kTargetOrder action:kActionOrderInitHS_OrderViewController params:params shouldCacheTarget:NO];
}

/**
 获取到家服务Class

 @return Class
 */
-(Class)seg_getHSViewControllerClass {
    return [self performTarget:kTargetOrder action:kActionGetHSOrderViewControllerClass params:nil shouldCacheTarget:NO];
}

/**
 * 创建选择时间控制器
 * @author Sam
 */
-(UIViewController*)seg_initSelectTimeViewController:(NSDictionary*)params{
    return [self performTarget:kTargetGroupsShopping action:kActionGroupsShoppingInitSelectTimeViewController params:params shouldCacheTarget:NO];
}

@end
